<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>slot_hello</title>
    <link href="https://cdn.bootcss.com/font-awesome/5.13.0/css/all.min.css" rel="stylesheet">
    <script src="https://cdn.bootcss.com/vue/2.6.10/vue.js"></script>
</head>
<body>
    <div id="app">
        <navigation-link url="/profile">
            <span class="fa fa-user"></span>
            Your Profile
        </navigation-link>
    </div>
    <script>
        Vue.component('navigation-link', {
            props: ['url'],
            template: `
                <a
                    v-bind:href="url"
                    class="nav-link"
                >
                    <slot></slot>
                </a>
            `
        });
        var app = new Vue({
            el: '#app'
        });
    </script>
</body>
</html>
